package com.changgou.search.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.Map;

@FeignClient(name = "search")
@RequestMapping("/search")
public interface SearchFeign {
    @PostMapping
    public Map<String, Object> search(@RequestBody Map<String, String> searchMap);
}
